/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Language Ability Mode</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * vocSet: T12249 (C-0-T12249-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getLanguageAbilityMode()
 * @model extendedMetaData="name='LanguageAbilityMode'"
 * @generated
 */
public enum LanguageAbilityMode implements Enumerator {
	/**
	 * The '<em><b>ESGN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ESGN_VALUE
	 * @generated
	 * @ordered
	 */
	ESGN(0, "ESGN", "ESGN"),

	/**
	 * The '<em><b>ESP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ESP_VALUE
	 * @generated
	 * @ordered
	 */
	ESP(1, "ESP", "ESP"),

	/**
	 * The '<em><b>EWR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EWR_VALUE
	 * @generated
	 * @ordered
	 */
	EWR(2, "EWR", "EWR"),

	/**
	 * The '<em><b>RSGN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RSGN_VALUE
	 * @generated
	 * @ordered
	 */
	RSGN(3, "RSGN", "RSGN"),

	/**
	 * The '<em><b>RSP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RSP_VALUE
	 * @generated
	 * @ordered
	 */
	RSP(4, "RSP", "RSP"),

	/**
	 * The '<em><b>RWR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RWR_VALUE
	 * @generated
	 * @ordered
	 */
	RWR(5, "RWR", "RWR");

	/**
	 * The '<em><b>ESGN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ESGN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ESGN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ESGN_VALUE = 0;

	/**
	 * The '<em><b>ESP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ESP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ESP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ESP_VALUE = 1;

	/**
	 * The '<em><b>EWR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EWR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EWR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int EWR_VALUE = 2;

	/**
	 * The '<em><b>RSGN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RSGN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RSGN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RSGN_VALUE = 3;

	/**
	 * The '<em><b>RSP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RSP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RSP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RSP_VALUE = 4;

	/**
	 * The '<em><b>RWR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RWR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RWR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RWR_VALUE = 5;

	/**
	 * An array of all the '<em><b>Language Ability Mode</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final LanguageAbilityMode[] VALUES_ARRAY =
		new LanguageAbilityMode[] {
			ESGN,
			ESP,
			EWR,
			RSGN,
			RSP,
			RWR,
		};

	/**
	 * A public read-only list of all the '<em><b>Language Ability Mode</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<LanguageAbilityMode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Language Ability Mode</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LanguageAbilityMode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LanguageAbilityMode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Language Ability Mode</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LanguageAbilityMode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LanguageAbilityMode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Language Ability Mode</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LanguageAbilityMode get(int value) {
		switch (value) {
			case ESGN_VALUE: return ESGN;
			case ESP_VALUE: return ESP;
			case EWR_VALUE: return EWR;
			case RSGN_VALUE: return RSGN;
			case RSP_VALUE: return RSP;
			case RWR_VALUE: return RWR;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private LanguageAbilityMode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //LanguageAbilityMode
